package com.learnyou.server.xingzuo.dto.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ListParamDTO<T> {
    @ApiModelProperty(value = "list参数，一般为实体ID")
    @Size(min = 1, message = "list参数至少传入一个值")
    private List<T> dataList;
}
